import Card.Card;
import Card.CardDemo;

import java.lang.reflect.Array;
import java.util.ArrayList;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * Date: 2024-01-31
 * Time:21:16
 */
public class Test {
    public static void main1(String[] args) {
        Integer[] array = {2,7,1,9,6,5};
        int ret = Alg.findMax(array);
        int ret1 = Alg.<Integer>findMax(array);
        System.out.println(ret);
        System.out.println(ret1);

    }

    public static void main(String[] args) {
/*
        CardDemo cardDemo = new CardDemo();
        List<Card> cardList = cardDemo.GenerateCard();
        CardDemo.display(cardList);
        cardDemo.shuffle(cardList);
        CardDemo.display(cardList);
        cardDemo.getCard(cardList);
*/

        ArrayList<Integer> list = new ArrayList<>();
/*
        ArrayList<Number> list2 = new ArrayList<>(list1);  //相当于new ArrayList<>(ArrayList<Integer>)
        List<Number>list3 = new ArrayList<>(list1);
*/
/*
        list.add(1);
        list.add(2);
        list.add(3);
        list.add(4);
        for (int i = 0; i < list.size(); i++) {
            System.out.print(list.get(i) + " ");
        }

        for (Integer integer : list) {
            System.out.print(integer + " ");
        }
*/
/*
        ArrayList<Integer>list5 = list1.subList(0,2);
        list3.addAll(list1);
        System.out.println(list4);
        System.out.println(list3);
*/


        MyLinkedList myLinkedList = new MyLinkedList();
        myLinkedList.addLast(6);
        myLinkedList.display();

    }
}
